package mapEditor.events
{
	import flash.events.Event;
	
	public class MapEditorEvent extends Event
	{
		/**
		 *改变操作工具 
		 */		
		public static const TOOL_TYPE_CHANGE:String = "ToolTypeChange";
		
		/**
		 *改变面板 
		 */		
		public static const PANEL_TYPE_CHANGE:String = "PanelTypeChange";
		
		/**
		 * 地图资源加载完成
		 */		
		public static const MAP_ASSET_LOAD_COMPLETE:String = "MapAssetLoadComplete";
		
		/**
		 * 当前激活的地图物件的改变
		 */		
		public static const MAP_ASSET_ACTION_ITEM_CHANGE:String = "MapAssetActionItemChange";		
		
		/**
		 * 当前鼠标跟随资源改变
		 */		
		public static const MOUSE_ASSET_CHANGE:String = "MouseAssetChange";	
		
		/**
		 * 选中地图场景放置的物件
		 */
		public static const MAP_SELECT_ASSET:String = "MapSelectAsset";
		
		/**
		 * 改变选中的地图场景放置的物件的坐标位置
		 */
		public static const MAP_SELECT_ASSET_POS_CHANGE:String = "MapSelectAssetPosChange";
		
		/**
		 * 创建新地图文件
		 */
		public static const MAP_NEW_CREATE:String = "MapNewCreate";
		
		/**
		 * 打开地图文件
		 */
		public static const MAP_OPEN:String = "MapOpen";		
		
		/**
		 * 镜像地图物件
		 */
		public static const MAP_ASSET_MIRROR:String = "MapAssetMirror";	
		
		/**
		 * 置底地图物件
		 */
		public static const MAP_ASSET_BOTTOM:String = "MapAssetBottom";	
		
		/**
		 * 置为地表地图物件
		 */
		public static const MAP_ASSET_FLOOR:String = "MapAssetFloor";
		
		/**
		 * 贴近网格地图物件
		 */
		public static const MAP_ASSET_GRID:String = "MapAssetGrid";	
		
		/**
		 * 当通过指定的资源库路径后，资源加载成功事件
		 */
		public static const UPDATE_BY_ASSET_LIB_PATH_ASSET_LOAD_COMPLETE:String = "UpdateByAssetLibPathAssetLoadComplete";	
		
		/**
		 * 双击资源库中的物件
		 */
		public static const MAP_ASSET_DOUBLE_CLICK:String = "MapAssetDoubleClick";	
		
		/**
		 * 事件传递的数据 
		 */		
		private var _data:Object;
		
		/**
		 * 事件传递的数据
		 */		
		public function get date():Object
		{
			return _data;
		}
		
		public function MapEditorEvent(type:String, data:Object=null)
		{
			super(type, data);
			_data=data;
		}
	}
}